/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-04-11 15:35:35
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-04-11 19:34:58
 * @FilePath: \vue-project\src\api\user\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//登录接口类型
export interface loginForm {
  username: string
  password: string
}

interface dataType {
  token: string
  message?: string
}

export interface loginResData {
  code: number
  data: dataType
}

//用户信息接口类型

interface user {
  checkUser: checkUser
}

interface checkUser {
  userId: number
  avatar: string
  username: string
  password: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}
export interface userInfo {
  code: number
  data: user
}
